home *** CD-ROM | disk | FTP | other *** search
- * Example of utility to show user's Internet email address
-
- domain = "@esoft.com" && edit this with your domain name
- name = LOWER(TRIM(UNAME())) && get user's name from TBBS
- DO WHILE " " $ name && loop until no more spaces in name
- s = AT(" ", name) && where is the first space?
- name = LEFT(name, s - 1) + "." + SUBSTR(name, s + 1) && replace with period
- ENDDO
- ? "Your internet mailing address is: "
- ?? CHR(34) + name + domain + CHR(34) && show user's email address
- WAIT && wait for user to press a key
-